package com.dt76.smallloanbackenduser.hystrix.hzp;

import com.dt76.smallloanbackenduser.pojo.hzp.HLoanMaterial;
import com.dt76.smallloanbackenduser.remote.hzp.HLoanMaterialRemote;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class HLoanMaterialHystrix implements HLoanMaterialRemote {
    @Override
    public List<HLoanMaterial> qryAllHLMM() {
        System.out.println("熔断机制生效");
        return new ArrayList<>();
    }

    @Override
    public Page qryPageHLoanMaterial(Integer pageIndex, Integer pageSize) {
        System.out.println("熔断机制生效");
        return new Page();
    }

//    @Override
//    public HLoanMaterial findOne(int materialId) {
//        return new HLoanMaterial();
//    }
//
//    @Override
//    public Result add(HLoanMaterial hLoanMaterial) {
//        return new Result();
//    }

}
